package com.nova.edc.model.system;

import com.nova.frame.annotation.Id;
import com.nova.frame.annotation.Join;
import com.nova.frame.annotation.Table;
import com.nova.frame.annotation.Transient;
import com.nova.module.filter.annotation.FilterCondition;

/**
 * Created by leshare on 2015-12-08.
 */
@Table("t_collectarea_item_air")
public class CollectAreaItemAir {

    @Id
    private Integer id;
    private Integer headid;
    private Integer airid;
    @Transient
    @Join(fieldName = "airid", table = DeviceAir.class, joinColumn = "Airname")
    private String airname;
    @Transient
    @Join(fieldName = "airid", table = DeviceAir.class, joinColumn = "Power")
    private Integer airpower;
    private Integer airnum;
    @FilterCondition()
    private Integer companycode;
    @FilterCondition()
    private Integer customerinfoid;
    @Transient
    @Join(fieldName = "airid", table = DeviceAir.class, joinColumn = "AirCode")
    private String airCode;
    @Join(fieldName = "headid", table = CollectArea.class, joinColumn = "GatewayID")
    @FilterCondition
    private String gatewayid;
    @Join(fieldName = "headid", table = CollectArea.class, joinColumn = "SensorID")
    @FilterCondition
    private Integer sensorid;
    @Join(fieldName = "headid", table = CollectArea.class, joinColumn = "ChannelID")
    @FilterCondition
    private Integer channelid;
    @Join(fieldName = "headid", table = CollectArea.class, joinColumn = "CollectAreaName")
    private String collectareaname;
    @Transient
    private Integer useminute;

    public String getAirname() {
        return airname;
    }

    public void setAirname(String airname) {
        this.airname = airname;
    }

    public Integer getAirpower() {
        return airpower;
    }

    public void setAirpower(Integer airpower) {
        this.airpower = airpower;
    }

    public String getGatewayid() {
        return gatewayid;
    }

    public void setGatewayid(String gatewayid) {
        this.gatewayid = gatewayid;
    }

    public Integer getSensorid() {
        return sensorid;
    }

    public void setSensorid(Integer sensorid) {
        this.sensorid = sensorid;
    }

    public Integer getChannelid() {
        return channelid;
    }

    public void setChannelid(Integer channelid) {
        this.channelid = channelid;
    }

    public String getCollectareaname() {
        return collectareaname;
    }

    public void setCollectareaname(String collectareaname) {
        this.collectareaname = collectareaname;
    }

    public Integer getUseminute() {
        return useminute;
    }

    public void setUseminute(Integer useminute) {
        this.useminute = useminute;
    }

    public String getAirCode() {
        return airCode;
    }

    public void setAirCode(String airCode) {
        this.airCode = airCode;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getHeadid() {
        return headid;
    }

    public void setHeadid(Integer headid) {
        this.headid = headid;
    }

    public Integer getAirid() {
        return airid;
    }

    public void setAirid(Integer airid) {
        this.airid = airid;
    }

    public Integer getAirnum() {
        return airnum;
    }

    public void setAirnum(Integer airnum) {
        this.airnum = airnum;
    }

    public Integer getCompanycode() {
        return companycode;
    }

    public void setCompanycode(Integer companycode) {
        this.companycode = companycode;
    }

    public Integer getCustomerinfoid() {
        return customerinfoid;
    }

    public void setCustomerinfoid(Integer customerinfoid) {
        this.customerinfoid = customerinfoid;
    }
}
